package com.thread.test20190330.part1.simulatebackqueue05;

/**
 * 抽号机runale 完成 方便将业务代码可线程代码分离
 *
 * @author Conceit
 * @since 1.0.0, 2019/4/1
 */
public class RunnableLotteryMachine implements Runnable{


	private int MAX_NUMBER=50;

	/**
	 *
	 */
	private int START_NUMBER=1;

	@Override
	public void run(){
		while (START_NUMBER<=MAX_NUMBER){


			System.out.println("当前"+Thread.currentThread().getName()+"为-->"+START_NUMBER);
			START_NUMBER++;
			try {
				Thread.sleep(0);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}

	}





}
